package com.lxk.concurrency.example.immutable;

import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSet;
import com.lxk.concurrency.annoations.ThreadSafe;

@ThreadSafe
public class ImmutableExample3 {

	private final static ImmutableList<Integer> list = ImmutableList.of(1, 2, 3);

	private final static ImmutableSet<Integer> set = ImmutableSet.copyOf(list);

	private final static ImmutableMap<Integer, Integer> map = ImmutableMap.of(1, 2);

	public static void main(String[] args) {
		// map.put(1, 5);
		System.out.println(map.get(1));
	}

}
